package com.practice.order.config;

import feign.Logger;
import feign.Retryer;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

@Configuration
public class OrderServiceConfig {

//    @Bean
//    Retryer retryer() {
//        return new Retryer.Default();
//    }

    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }

    @Bean
    @LoadBalanced
    public RestTemplate getRestTemplate() {
        System.out.println(123);
        return new RestTemplate();
    }

}
